package com.chexiehui.jc.entity;

import com.blankj.utilcode.util.StringUtils;

import java.io.Serializable;

public class WeatherNow implements Serializable {

    private WeatherCond cond;

    private String tmp;

    public WeatherCond getCond() {
        return cond == null ? cond = new WeatherCond() : cond;
    }

    public void setCond(WeatherCond cond) {
        this.cond = cond;
    }

    public String getTmp() {
        return tmp;
    }

    public void setTmp(String tmp) {
        this.tmp = tmp;
    }

    public String getTmpStr() {
        if(StringUtils.isTrimEmpty(tmp) || StringUtils.isTrimEmpty(getCond().getTxt())){
            return "";
        }
        return tmp + "℃ " + getCond().getTxt();
    }
}
